package com.guodi.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guodi.model.entity.ApiMdlModelDir;
import com.guodi.model.entity.MdlModelDir;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @描述：模型目录表 Mapper 接口
 * @作者: 代鹏刚
 * @日期: 2020-06-17
 */
public interface MdlModelDirMapper extends BaseMapper<MdlModelDir> {

    /**
    * @描述: 根据IDS批量删除目录树
    * @入参:
    * @出参:
    * @作者: 代鹏刚
    * @日期: 2020/6/18 10:12
    **/
    void deleteByIds(@Param("ids") String[] ids);

    /**
    * @描述:
    * @入参:
    * @出参:
    * @作者: 代鹏刚
    * @日期: 2020/6/18 11:08
    **/
    List<MdlModelDir> listDirTreeByEntity(@Param("parentId") String parentId, @Param("dirType") Integer dirType);

    List<ApiMdlModelDir> listTreeByEntity(@Param("parentId") String parentId, @Param("dirType") Integer dirType);
}
